import { Column, Entity, ManyToOne, OneToMany, PrimaryGeneratedColumn } from "typeorm";
import { BaseEntity } from "./base.entity";

@Entity({
    name: "device"
})
export class Device extends BaseEntity {

    @PrimaryGeneratedColumn({
        name: "set_id"
    })
    setid: number;

    @Column({
        name: "set_name",
        type: "char",
        length: 255,
    })
    setname: string;

    @Column({
        name: "type_code",
        type: "char",
        length: 255,
    })
    typecode: string;

    @Column({
        name: "creator",
        type: "char",
        length: 255,
    })
    creator: string;

    @Column({
        name: "if_run"
    })
    ifrun: boolean;
}
